package string;

public class Trim {
    public static void main(String[] args) {
        String str="             HelloWord              ";
        System.out.println(str);
        str=str.trim();
        System.out.println(str);
    }
}
